-- GENERATED SPELL FOR [Gravelflint Bonesnapper] --


function spell0_2159(pUnit, Event) --@Head Crack,n/a--
pUnit:FullCastSpellOnTarget(3148,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2159', 20285, 1)
end

function Sorts_2159(pUnit, Event)
local choix_sorts_2159 = math.random(0, 0)
if choix_sorts_2159 == 0 then
pUnit:RegisterEvent('spell0_2159', 1, 1)
end
end

function mob2159_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2159', math.random(1500, 3000), 1)
end

function mob2159_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2159_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2159_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2159, 1, 'mob2159_Action')
RegisterUnitEvent(2159, 2, 'mob2159_Leave')
RegisterUnitEvent(2159, 3, 'mob2159_Kill')
RegisterUnitEvent(2159, 4, 'mob2159_Die')
